package com.wxblockchain.prometheum.flutter;

import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;

import com.wxblockchain.prometheum.R;

import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.android.FlutterView;


public class FlutterPageActivity extends FlutterActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_flutter_page);

        View flutterView = new FlutterView(this);
        FrameLayout.LayoutParams mLayout = new FrameLayout.LayoutParams(500,600);
        mLayout.leftMargin = 50;
        mLayout.topMargin = 100;

        FrameLayout mContain = findViewById(R.id.fl_content);

        mContain.addView(flutterView,mLayout);

//        flutterView.attachToFlutterEngine
    }
}
